package com.zhx.freedom.say.diary.rpc.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 描述: dubbo 测试服务类
 *
 * @author zhx
 * @date 2019-04-01  10:23
 **/
@FeignClient(name = "freedomsay-service-diary")
public interface RpcDiaryService {

    /**
     * 测试springCloud调用
     * @return
     */
    @GetMapping("/test/{userName}")
    String getNameByCloud(@PathVariable("userName")String userName);

}
